package com.bss.service;

import java.io.File;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.andy.basics.Dao;
import com.bss.dao.PassportDao;
import com.bss.dao.PatientDao;
import com.bss.model.Passport;
import com.bss.model.Patient;

@Service
@Scope("session")
public class PatientService extends com.andy.basics.Service<Patient> {

	private File imageFile;
	private byte imageData[];

	@Autowired
	private PatientDao patientDao;

	@Autowired
	private PassportDao passportDao;

	private Passport passport = new Passport();

	public Passport getPassport() {
		return this.passport;
	}

	public void setPassport(Passport passport) {
		this.passport = passport;
	}

	@Override
	public Dao<Patient> getDao() {
		return this.patientDao;
	}

	public void setPatientDao(PatientDao patientDao) {
		this.patientDao = patientDao;
	}

	public void setImageData(byte imageData[]) {
		this.imageData = imageData;
	}

	public byte[] getImageData() {
		return this.imageData;
	}

	public void setImageFile(File imageFile) {
		this.imageFile = imageFile;
	}

	public File getImageFile() {
		return this.imageFile;
	}

}
